package Object.reflect;

/**
 * @author haomin
 * @date 2022/11/10 10:43
 **/
public class Son {
    private String name;
    private int age;
    public int aa;
    int bb;

    Son(){
        System.out.println("我是包无参构造");
    }
    private Son(String name) {
        System.out.println("我是私有有参构造 name = " + name);
    }
    public Son(String name, int age){
        System.out.println("我是公有有参构造 name = " + name + "age" +age);
    }

    void method1(){
        System.out.println("我是无参方法");
    }
    private void method2(String dd){
        System.out.println("我是包访问权限有参方法" + dd);
    }
    public void method3(String dd, String cc){
        System.out.println("我是公共有参方法" + dd);
    }
}